package com.kapcb.statemachine.builder;

/**
 * <a>Title: FailCallback </a>
 * <a>Author: kapcb <a>
 * <a>Description: FailCallback <a>
 *
 * @author Kpacb
 * @version 1.0
 * @date 2024/7/23 20:35
 * @since 1.0
 */
@FunctionalInterface
public interface FailCallback<S, E, C> {

    /**
     * Callback function to execute if failed to trigger an Event
     *
     * @param sourceState
     * @param event
     * @param context
     */
    void onFail(S sourceState, E event, C context);

}
